<?php

/**
 * Deliverer form.
 *
 * @package    ProdAssistant
 * @subpackage form
 * @author     Paweł Świtalla
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class DelivererForm extends BaseDelivererForm
{
  public function configure()
  {
    $core = PACore::getInstance();
    $this->useFields(array('name', 'person', 'telephone', 'email', 'shortcut', 'address_id', 'categories_list'));
    $this->getWidget('address_id')->setLabel('Adres <br /><a onclick="App.loadWindow(\''.$core->generateAppUrl('Core', 'homeGetComponent', true, array('componentModule' => 'ProductionSettings', 'name' => 'manageAddresses', 'handler' => 'refreshLastForm')).'\')" class="active"><img src="/images/icons/add.png" class="middle" height="18" width="18"></a>');
    $this->getWidget('name')->setLabel('Nazwa');
    $this->getWidget('shortcut')->setLabel('Skrót');
    $this->getWidget('person')->setLabel('Osoba (kontaktowa)');
    $this->getWidget('telephone')->setLabel('Telefon');
    $this->getWidget('categories_list')->setLabel('Kategorie');
  }
}
